package textrpg.items.resources;

import textrpg.items.Item;

public class Ore extends Item {

    private double rockDifficulty;
    private double xpGiven;
    private long avgMineTime;
    public static Ore ore;

    public Ore(String itemName, String itemType, double difficulty, long avgMineTime, double xpGiven) {
        super(itemName, itemType);
        this.rockDifficulty = difficulty;
        this.avgMineTime = avgMineTime;
        this.xpGiven = xpGiven;
    }

    public double getDifficulty() {
        return rockDifficulty;
    }

    public double getAverageTime() {
        return avgMineTime;
    }

    public double getXPGiven() {
        return xpGiven;
    }

    public static void addOre(String itemName, String itemType, double difficulty, long avgMineTime, double xpGiven) {
        ore = new Ore(itemName, itemType, difficulty, avgMineTime, xpGiven);
        itemList.add(ore);
    }

    public static void registerOres() {
        addOre("Copper Ore", "Ore", 1.0, 4000, 15);
        addOre("Iron Ore", "Ore", 2.0, 8000, 35);
        addOre("Mithril Ore", "Ore", 1.5, 6000, 65);
        addOre("Adamantite Ore", "Ore", 2.0, 7500, 85);
        addOre("Rune Ore", "Ore", 3.0, 9500, 100);
    }
}
